package com.im.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhoulf on 2017/6/1.
 */

@RestController
public class UserController {
    @GetMapping("/user/{name}")
    @ResponseBody
    public String get(@PathVariable  String name) {
        return name;
    }
}
